package cn.hit.tianqiao.service.impl;

import cn.hit.tianqiao.dao.StoreDao;
import cn.hit.tianqiao.dao.impl.StoreDaoImpl;
import cn.hit.tianqiao.domain.Store;
import cn.hit.tianqiao.service.StoreService;

import java.util.List;

public class StoreServiceImpl implements StoreService {
    StoreDao dao = new StoreDaoImpl();

    @Override
    public List<Store> findStoresWithinDistance(double longitude, double latitude, double distance) {
        return dao.findWithinDistance(longitude, latitude, distance);
    }
}
